const app = getApp()
Page({
  onLoad() {
    this.getNotifyList()
    // console.log(getApp().token);
    console.log(app);
  },
  async getNotifyList() {
    const { code, data } = await
      wx.http.get('/announcement')
    if (code !== 10000) return wx.utils.toast('')
    console.log(data);
    this.setData({
      notifyList: data
    })
  }

})
